package com.mdd.front.vo.region;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * DevRegionVo
 */
@Data
@ApiModel(value = "按照字母分组返回对象", description = "按照字母分组返回对象")
public class DevRegionFirstCharListVo implements Comparable<DevRegionFirstCharListVo>, Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "字母母")
    private String firstChar; // 城市首字母

    @ApiModelProperty(value = "城市信息")
    private List<DevRegionListVo> list; // 城市信息

    @Override
    public int compareTo(DevRegionFirstCharListVo vo) {
        return this.getFirstChar().compareTo(vo.getFirstChar());
    }
}
